@isTest
private class ContactControllerTest
{
   static testMethod void testContactController()
   {
   	   PageReference pageRef = Page.contact;
       pageRef.getParameters().put(ContactController.ENQUIRY_TYPE, 'LAO');
       Test.setCurrentPage(pageRef);
       ContactController controller = new ContactController();
       controller.getEnquiryTypes();
       controller.contactDetails.fullName = '';
       controller.contactDetails.enquiryType ='General';
       controller.contactDetails.email = 'giles.bill@test.com';
       controller.contactDetails.phone = '3';
       controller.contactDetails.postcode = '2000';
       PageReference pageReference = controller.eventSubmitContactDetails();
       System.assert(controller.contactDetails.errors.contains('fullName'));
       System.assert(controller.contactDetails.errors.contains('phone'));
       System.assert(controller.contactDetails.getHasValidationErrors());
       System.assert(controller.contactDetails.getErrors().size() > 0);
       controller.contactDetails.phone = '0266668888';
       controller.contactDetails.fullName = 'Test';
       pageReference = controller.eventSubmitContactDetails();
       controller.contactDetails.fullName = 'Test';
       controller.contactDetails.postcode = '2';
       
       pageReference = controller.eventSubmitSpeakConsultantDetails();
       System.assert(controller.contactDetails.errors.contains('postcode'));
       controller.contactDetails.postcode = '2000';
       controller.contactDetails.email = 'giles.bill@test.com';
       pageReference = controller.eventSubmitSpeakConsultantDetails();
   }
   
   
}